import React, {Component} from 'react';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import PreviewList from '@/components/Home/Preview/PreviewList';
import {loadArticles} from './HomeRedux';

// console.log(loadArticles)

class Home extends Component {
  constructor (props) {
    super(props);
    this.state = {};
  }
  render () {
    console.log(this.props)
    return (
      <div>
        <h1>Home</h1>
        <PreviewList
          {...this.props}
        ></PreviewList>
      </div>
    )
  }
}

export default connect((state, props) => Object.assign({}, props, state), {
  loadArticles
})(Home);
